import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Form';

export const formSchems: FormSchema[] = [
  {
    label: '店铺员工名称',
    field: 'userName',
    component: 'Input',
  },
  {
    label: '员工手机号',
    field: 'phonenumber',
    component: 'Input',
  },
];

export const columns: BasicColumn[] = [
  {
    title: '账号昵称',
    dataIndex: 'nickName',
  },
  {
    title: '登陆账号名',
    dataIndex: 'userName',
  },
  {
    title: '手机号',
    dataIndex: 'phonenumber',
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
  },
  {
    title: '上次登录时间',
    dataIndex: 'loginDate',
  },
  {
    title: '上次登录ip',
    dataIndex: 'loginIp',
  },
];

export const modalSchemas: FormSchema[] = [
  {
    label: '账号昵称',
    field: 'nickName',
    required: true,
    component: 'Input',
  },
  {
    label: '登陆账号',
    field: 'userName',
    required: true,
    component: 'Input',
  },
  {
    label: '登录密码',
    field: 'password',
    required: true,
    component: 'InputPassword',
  },
  {
    label: '手机号码',
    field: 'phonenumber',
    required: true,
    component: 'InputNumber',
  },
  {
    label: '邮箱',
    field: 'email',
    required: false,
    component: 'Input',
  },
  {
    label: '备注',
    field: 'remark',
    required: false,
    component: 'InputTextArea',
  },
];
